package com.bit.deom.controller;

import com.bit.deom.Service.UserService;
import com.bit.deom.mapper.UserInfoMapper;
import com.bit.deom.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUserInfo")
    public List<UserInfo> getUserInfo() {
        List<UserInfo> list = userService.getUserInfoList();
        System.out.println( list);
        return list;
    }

}
